package com.gxcc3.ygps.web.controller.company;

import com.gxcc3.ygps.common.core.controller.BaseController;
import com.gxcc3.ygps.common.core.domain.AjaxResult;
import com.gxcc3.ygps.system.service.ISysCompanyService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 企业主体信息
 */
@RestController
@RequestMapping("/company")
public class SysCompanyController extends BaseController {

    @Resource
    ISysCompanyService companyService;


    @GetMapping("/info")
    public AjaxResult getCompanyInfo(){
        return AjaxResult.success(companyService.selectCompanyById(getCompanyId()));
    }
}
